<section class="content-header">
    <h1>
        生产线日均能耗标准
    </h1>
</section>

<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-default">
                <div class="box-header with-border">
                    <h3 class="box-title">生产线日均能耗标准</h3>
                    <div class="box-tools pull-right">
                        <button type="button" (click)="saveChanges()" class="btn btn-info btn-sm" data-toggle="tooltip" title="保存">
                            <i class="fa fa-save"></i>
                        </button>
                        <button type="button" (click)="refresh()" class="btn btn-info btn-sm" data-toggle="tooltip" title="刷新">
                            <i class="fa fa-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-info btn-sm" data-widget="collapse">
                            <i class="fa fa-minus"></i>
                        </button>
                    </div>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <dx-data-grid [dataSource]="items" (onRowUpdated)="updateResourceAttribute($event)" [showColumnLines]="true" [showRowLines]="true"
                        [showBorders]="true" [rowAlternationEnabled]="true">
                        <dxo-paging [pageSize]="10"></dxo-paging>
                        <dxo-pager [showPageSizeSelector]="true" [allowedPageSizes]="[10, 20, 100]" [showInfo]="true">
                        </dxo-pager>
                        <dxo-editing mode="cell" [allowUpdating]="true">
                        </dxo-editing>
                        <dxo-filter-row [visible]="true" [applyFilter]="auto"></dxo-filter-row>
                        <dxo-editing mode="cell" [allowUpdating]="true">
                        </dxo-editing>
                        <dxi-column [allowEditing]="false" dataField="subArea" caption="名称" [width]="100">
                        </dxi-column>
                        <dxi-column [allowEditing]="true" dataField="dailyEnergyN" caption="非生产日标准状态日均能耗值">
                        </dxi-column>
                        <dxi-column [allowEditing]="true" dataField="dailyMaintainEnergy" caption="日均保养需求能耗">
                        </dxi-column>
                        <dxi-column [allowEditing]="true" dataField="dailyEnergy" caption="生产日状态日均能耗值">
                        </dxi-column>
                        <dxi-column [allowEditing]="false" dataField="totalEnergyN" caption="非生产日总能耗指标">
                        </dxi-column>
                        <dxi-column [allowEditing]="false" dataField="standardProportionN" caption="非生产日标准能耗占比">
                        </dxi-column>
                        <dxi-column [allowEditing]="false" dataField="maintainProportion" caption="保养能耗占比指标">
                        </dxi-column>
                        <dxi-column [allowEditing]="false" dataField="proportionValueN" caption="非生产日能耗占比目标值">
                        </dxi-column>
                    </dx-data-grid>
                </div>
            </div>
        </div>
    </div>
</section>